import request from '@/utils/request'

// 查询客户订单列表
export function listCusorders(query) {
  return request({
    url: '/busi/cusorders/list',
    method: 'get',
    params: query
  })
}

// 查询客户订单详细
export function getCusorders(id) {
  return request({
    url: '/busi/cusorders/' + id,
    method: 'get'
  })
}

// 新增客户订单
export function addCusorders(data) {
  return request({
    url: '/busi/cusorders',
    method: 'post',
    data: data
  })
}

// 修改客户订单
export function updateCusorders(data) {
  return request({
    url: '/busi/cusorders',
    method: 'put',
    data: data
  })
}

// 删除客户订单
export function delCusorders(id) {
  return request({
    url: '/busi/cusorders/' + id,
    method: 'delete'
  })
}

// 导出客户订单
export function exportCusorders(query) {
  return request({
    url: '/busi/cusorders/export',
    method: 'get',
    params: query
  })
}